package com.cashmama.market.api.application.controller.order.repay.response;

import com.cashmama.market.api.domain.vo.order.OrderFieldDetail;
import com.cashmama.market.api.domain.vo.order.repayment.RepaymentDetail;
import com.cashmama.market.api.infras.handler.ResponseData;

import java.util.List;

/**
 * @program: market-api
 * @description 账单详情
 * @author: frank
 * @create: 2019-12-27 11:15
 **/
public class RepayDetailVO implements ResponseData {

    private Boolean paid;
    private String repayDate;
    private String amount;
    private String interest;
    private String statusText;
    private String principle;
    private String overdueFees;
    private Integer currentPeriod;
    private List<OrderFieldDetail> orderFieldDetails;

    public RepayDetailVO(RepaymentDetail repaymentDetail) {
        this.paid = repaymentDetail.getPaid();
        this.repayDate = repaymentDetail.getRepayDate();
        this.amount = repaymentDetail.getAmount();
        this.interest = repaymentDetail.getInterest();
        this.principle = repaymentDetail.getPrinciple();
        this.overdueFees = repaymentDetail.getOverdueFees();
        this.currentPeriod = repaymentDetail.getCurrentPeriod();
        this.statusText = repaymentDetail.getStatusText();
        this.orderFieldDetails = repaymentDetail.getOrderFieldDetails();
    }

    public String getStatusText() {
        return statusText;
    }

    public RepayDetailVO setStatusText(String statusText) {
        this.statusText = statusText;
        return this;
    }

    public RepayDetailVO() {
    }

    public Boolean getPaid() {
        return paid;
    }

    public RepayDetailVO setPaid(Boolean paid) {
        this.paid = paid;
        return this;
    }

    public String getRepayDate() {
        return repayDate;
    }

    public RepayDetailVO setRepayDate(String repayDate) {
        this.repayDate = repayDate;
        return this;
    }

    public String getAmount() {
        return amount;
    }

    public RepayDetailVO setAmount(String amount) {
        this.amount = amount;
        return this;
    }

    public String getInterest() {
        return interest;
    }

    public RepayDetailVO setInterest(String interest) {
        this.interest = interest;
        return this;
    }

    public String getPrinciple() {
        return principle;
    }

    public RepayDetailVO setPrinciple(String principle) {
        this.principle = principle;
        return this;
    }

    public String getOverdueFees() {
        return overdueFees;
    }

    public RepayDetailVO setOverdueFees(String overdueFees) {
        this.overdueFees = overdueFees;
        return this;
    }

    public Integer getCurrentPeriod() {
        return currentPeriod;
    }

    public RepayDetailVO setCurrentPeriod(Integer currentPeriod) {
        this.currentPeriod = currentPeriod;
        return this;
    }

    public List<OrderFieldDetail> getOrderFieldDetails() {
        return orderFieldDetails;
    }

    public RepayDetailVO setOrderFieldDetails(List<OrderFieldDetail> orderFieldDetails) {
        this.orderFieldDetails = orderFieldDetails;
        return this;
    }
}
